Bitmap for UWP
QueryInterfaceOrNull<T>(IntPtr) メソッド

C1.UWP.DX アセンブリ > C1.Util.DX 名前空間 > ComObject クラス > QueryInterfaceOrNull メソッド : QueryInterfaceOrNull<T>(IntPtr) メソッド
The type of the COM interface to query
A pointer to a COM object.
Queries a managed object for a particular COM interface support.
シンタックス
'宣言
 
Public Overloads Shared Function QueryInterfaceOrNull(Of T As ComObject)( _
   ByVal comPointer As System.IntPtr _
) As T
public static T QueryInterfaceOrNull<T>( 
   System.IntPtr comPointer
)
where T: ComObject

パラメータ

comPointer
A pointer to a COM object.

型パラメータ

T
The type of the COM interface to query

戻り値の型

An instance of the queried interface
参照

ComObject クラス
ComObject メンバ
オーバーロード一覧